import { defineConfig } from 'vite'
import path from 'path'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  resolve: {
		alias: {
			//配置项目路径别名
			'@': path.resolve(__dirname, 'src')
		},
	},
  plugins: [vue()],
  build: {
		outDir: '../backend/views',
		assetsDir: 'assets',
		assetsInlineLimit: '4096',
		cssCodeSplit: true,
		sourcemap: true,
		manifest: false,
	},
})
